{ "type" : "object", "$schema" : "http://json-schema.org/draft-03/schema#", "properties" : { "interfaceCategory" : { "type" : "string", "required" : true, "description" : "CMP categorization of the job.", "maxLength" : 20, "enum" : [ "Device Enrolment" ] }, "interfaceType" : { "type" : "string", "required" : true, "description" : "CMP sub-categorization of the job that produces this extract file.", "maxLength" : 20, "enum" : [ "Device Enrolment Response" ] }, "version" : { "type" : "number", "required" : true, "description" : "The current version of the generic extract file. This must match the corresponding inbound file.", "maximum" : 1.0, "minimum" : 1.0 }, "extractLoadDateTime" : { "type" : "string", "required" : true, "description" : "Timestamp indicating when the generic extract file was created.", "format" : "date-time" }, "deviceEnrolmentProviderId" : { "type" : "string", "required" : true, "description" : "This indicates the manufacturer Id which uniquely identifier the manufacturer that this Device Enrolment request is for." }, "externalFileName" : { "type" : "string", "required" : true, "description" : "The name of the file that was received from the external system.", "maxLength" : 20, "pattern" : "^([a-zA-Z0-9._-])+$" }, "order" : { "type" : "object", "required" : true, "properties" : { "id" : { "type" : "integer", "required" : true, "description" : "This is the unique identifier of the order that the devices are associated with." }, "errors" : { "type" : "array", "items" : { "type" : "object", "properties" : { "id" : { "type" : "string", "required" : true, "description" : "The identifier of the error. This is an error code that will come from an external system.", "maxLength" : 100 }, "errorMessage" : { "type" : "string", "required" : true, "description" : "The error message that has come from the external system.", "maxLength" : 1000 } } } }, "devices" : { "type" : "array", "items" : { "type" : "object", "properties" : { "deviceId" : { "type" : "string", "required" : true, "description" : "The device ID.", "maxLength" : 120 }, "error" : { "type" : "object", "properties" : { "id" : { "type" : "string", "required" : true, "description" : "The identifier of the error. This is an error code that will come from an external system.", "maxLength" : 100 }, "errorMessage" : { "type" : "string", "required" : true, "description" : "The error message that has come from the external system.", "maxLength" : 1000 } } } } } } } } } }